import static java.lang.System.out;

public class JoinDemo{
	public static void main(String[] args)throws InterruptedException{
		out.println("Main thread 开始。。。");
		Thread thread = nwe thread(()—>{
			out.println("Thread 开始...");
			for(int i=0;i<5;i++){
				out.println("Thread 执行。。。");
			});
		threadB.start();
		threadB.join();

		out.println("Main thread 将结束。。。”);
		}
	}
	
